package gold.digger;

import gold.utils.InputUtil;

/**
 * Created by fanzhenyu02 on 2021/12/10.
 * common problem solver template.
 */
public class LC1108 {
    public long startExecuteTime = System.currentTimeMillis();


    class Solution {
        public String defangIPaddr(String address) {
            return address.replaceAll("\\.", "[.]");
        }
    }

    public void run() {
        System.out.println(new Solution().defangIPaddr("1.1.1.1"));
        System.out.println(new Solution().defangIPaddr("255.100.50.0"));
    }

    public static void main(String[] args) throws Exception {
        LC1108 an = new LC1108();
        an.run();

        System.out.println("\ncurrent solution total execute time: " + (System.currentTimeMillis() - an.startExecuteTime) + " ms.");
    }
}
